# -*- coding:utf-8 -*
# 导入 Requests 模块
import requests
import json
import urllib2

# 尝试获取某个网页
# r = requests.get('https://github.com/timeline.json')
# r = requests.post("http://httpbin.org/post")
# r = requests.put("http://httpbin.org/put")
# r = requests.delete("http://httpbin.org/delete")
# r = requests.head("http://httpbin.org/get")
# r = requests.options("http://httpbin.org/get")
# r.status_code == requests.codes.ok
# data = json.loads(r) 如何将一个JSON编码的字符串转换回一个Python数据结构

# 发送验证码
# r = requests.get('http://192.168.*.*/appserver/pub/sendVerifyCode?phone=*****')
# print r.status_code
# print r.text
# print r.json()

# 地图全列表查询接口

r = requests.get('http://192.168.*.*/appserver/station/getAllStation')
outdata = json.loads(r.text)


# print r.text
# print r
print outdata
print outdata.keys()
print outdata['code']

print outdata['msg']


